<?php
namespace app\admin\controller;

use think\facade\Db;
use think\facade\View;

class Good
{
    public function goodList()
    {
        $arr = Db::table('ecm_goods')->select();

        return view("good/good_list",[
            "list"      =>      $arr
        ]);
    }
    public function goodAdd()
    {
        return View::fetch();
    }
    public function cate()
    {
        $arr = Db::table('ecm_category')->select();

        return view('good/cate',[
            "list" => $arr
        ]);
    }
    public function cateedit()
    {
        return View::fetch();
    }

}
